<?php
/**
 * @link      http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license   http://www.yiiframework.com/license/
 */

namespace app\assets;


use yii\web\AssetBundle;

/**
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since  2.0
 */
class WebAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapAsset',
    ];

    public function registerAssetFiles($view)
    {
        $version = defined('VERSION') ? VERSION : time();
        $this->css = [
            'css/web/bootstrap.min.css',
            'font-awesome/css/font-awesome.css',
            'css/web/style.css?ver=' . $version
        ];
        $this->js = [
            'plugins/jquery-2.1.1.js',
            'js/web/bootstrap.min.js',
            'plugins/layer/layer.js',
            'js/web/zooming.min.js',
            'js/web/common.js?ver=' . $version
        ];
        parent::registerAssetFiles($view); // TODO: Change the autogenerated stub
    }
}
